package com.nuedu.corejava.ch7.homework;

public class Chinese extends Students {
	private int speech=0;
	private int production=0;
	private int finalexamination=0;
	private int middletest=0;
	public Chinese(String sid, String name, char sex, int age,int speech, int production, int finalexamination, int middletest) {
		super(sid, name, sex, age);
		this.speech = speech;
		this.production = production;
		this.finalexamination = finalexamination;
		this.middletest = middletest;
	}

	public Chinese() {
		super();
	}


	


	@Override
	double getsum() {
		return  this.speech*0.35+this.production*0.35+this.finalexamination*0.15+middletest*0.15;
	}


	

}
